package org.ch00.test02;

/**
 * @author ZJL
 * @date 2025-02-28
 */
public class Teacher {
    private  String name;
    private  String school;

    public Teacher() {
    }

    public Teacher(String name, String school) {
        setName(name);
        setSchool(school);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void teach() {
        System.out.println("开始讲课...");
    }

    public void jieShao(){
        System.out.println("大家好，我是"+this.name);
    }
}
